<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}后台管理页{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('admin.static', filename='css/main.css') }}">
    <link rel="stylesheet" href="{{ url_for('blog.static', filename='layui/css/layui.css') }}">
    <script type="text/javascript" src="{{ url_for('blog.static', filename='layui/layui.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('blog.static', filename='js/canvas-nest.js') }}"></script>
</head>

<body>
<script type="text/javascript" src="{{ url_for('blog.static', filename='js/canvas-nest.js') }}" color="18,214,120"
        opacity="0.7" count="200"></script>
{% block body %}

    {#  头部区域  #}
    {% block header %}
        <header class="header">
            <div class="layui-container">
                <a href="/" class="logopic">
                    <img src="{{ url_for('blog.static', filename='imgs/logo.png') }}" alt="">
                </a>
                <a href="/" class="title">
                    <h2>
                        {% block main_title %}
                        	青灯小站后台
                        {% endblock %}
                    </h2>
                </a>

                <ul class="layui-nav layui-layout-right">
                    <li class="layui-nav-item">
                        <a href="{{url_for('admin.post')}}">文章</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="#">笔记</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="{{url_for('admin.category')}}">分类</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="{{url_for('admin.note')}}">标签</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="#">评论</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="#">留言</a>
                    </li>

                    <li class="layui-nav-item header_avata">
                        <a>
                            <img src="{{ url_for('blog.static',filename='imgs/avata.jpg') }}" alt="">
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;">小站概要</a></dd>
                            <dd><a href="javascript:;">系统设置</a></dd>
                            <hr>
                            <dd style="text-align: center;"><a href="">退出</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </header>
    {% endblock %}

    {#  中心显示区域  #}
    {% block content %}
    {% endblock %}

    {#  尾部区域  #}
    {% block footer %}
        <footer class="footer">
            <p>Copyright&nbsp;&nbsp;© &nbsp;2023&nbsp;&nbsp;Qing-Deng</p>
        </footer>
    {% endblock %}

    {#  js站位坑  #}
    {% block script %}
    {% endblock %}

{% endblock %}

</body>
</html>